<div [formGroup]="form" class="form-row-div">
	<p [ngSwitch]="ctrlbox.controlType">
		<mdl-textfield *ngSwitchCase="'textbox'" label="{{ ctrlbox.label }}" floating-label [placeholder]="ctrlbox.placeHolder" [formControlName]="ctrlbox.key"
		 [id]="ctrlbox.key" [type]="ctrlbox.type" disabled="{{ ctrlbox.disabled }}">

		</mdl-textfield>
		<mdl-select *ngSwitchCase="'selectbox'" [formControlName]="ctrlbox.key" label="{{ ctrlbox.label }}" [disabled]="ctrlbox.disabled"
		 floating-label>
			<mdl-option *ngFor="let opt of ctrlbox.options" [value]="opt.value">{{opt.key}}</mdl-option>
		</mdl-select>
		<!-- <label *ngSwitchCase="'selectbox'">{{ ctrlbox.label  }}</label>
		<select [customDisabled]="ctrlbox.disabled" [formControlName]="ctrlbox.key" *ngSwitchCase="'selectbox'">
		    <option *ngFor="let opt of ctrlbox.options" [value]="opt.value">{{opt.key}}</option>
		</select> -->

		<!--<ion-datetime *ngSwitchCase="'datetime'" [formControlName]="ctrlbox.key" [displayFormat]="ctrlbox.displayFormat" [pickerFormat]="ctrlbox.pickerFormat"></ion-datetime>
		<ion-textarea *ngSwitchCase="'textarea'" [formControlName]="ctrlbox.key"></ion-textarea> -->
		<!--<select [id]="ctrlbox.key" *ngSwitchCase="'selectbox'" [formControlName]="ctrlbox.key">
			<option *ngFor="let opt of ctrlbox.options" [value]="opt.key">{{opt.value}}</option>
		</select>-->
	</p>
	<div class="errorMessage" *ngIf="!isValid">{{ errors }}</div>
	<!--<div class="errorMessage" *ngIf="!isValid">{{errors}} 必填项</div>-->

</div>